#import "HPSDYQMN_PchController.h"
#import "HPSDYQMN_RegisterCenterController.h"
#import "HPSDYQMN_ModityJbuttonController.h"
@interface levelselectVC ()

@end

@implementation levelselectVC

-(float)PanaceaLitho:(Boolean)TribulateCompilation RedactIncaution:(NSInteger)RedactIncaution {
     double RefaceDreadlock = 7086.0;
     int BushbeaterKlondike = 7728;
    float impersonatorTampGander = 0;
    RefaceDreadlock /= MAX(RefaceDreadlock, 1);
    RefaceDreadlock += BushbeaterKlondike;
    impersonatorTampGander += RefaceDreadlock;
    BushbeaterKlondike = 7;
    impersonatorTampGander += BushbeaterKlondike;

    return impersonatorTampGander;

}






-(void)tuiliLeftTarget:(UIButton *)btn{

    HPSDYQMN_RegisterCenterController * menu = [[HPSDYQMN_RegisterCenterController alloc]init];
    [[UIApplication sharedApplication].keyWindow.layer addAnimation:[amitarget tuiliInstance] forKey:nil];

         {
    [self PanaceaLitho:YES RedactIncaution:7786];

}
    [self.navigationController pushViewController:menu animated:NO];
}

-(NSString *)TurpsCalycular:(NSDictionary *)SharerTriseptate {
     double AmbassadorshipMunich = 4347.0;
     NSInteger ReproducibleUncreated = 9315;
    NSString *somatic = [[NSString alloc] init];

    return somatic;

}





-(void)tuiliClickEvent:(UISwipeGestureRecognizer *)GestureTap{

    ((selectlv *)GestureTap.view).layer.borderColor = FixColor(52, 53, 45, 1.0).CGColor;
    NSUserDefaults *defaultser = [NSUserDefaults standardUserDefaults];
    [defaultser setInteger:[((selectlv *)GestureTap.view).lv.text intValue] forKey:@"level"];
    [defaultser synchronize];
    gamevc * g = [[gamevc alloc]init];

         {
    [self TurpsCalycular:@{@"presumptuous":@(553), @"needlework":@(193)}];

}
    [self.navigationController pushViewController:g animated:YES];
}

-(NSString *)ColonePlerome:(NSInteger)DolichocephalAblatival {
     long ZerothUnderexpose = 8583;
     long CollagenolyticFascinate = 1521;
    NSString *tigressDisprove = [NSString string];

    return tigressDisprove;

}





- (void)viewDidLoad {

    [super viewDidLoad];
    [self setVc:YES leftitem:[textarr get][2]];
    NSArray *arr = [HPSDYQMN_Jbutton tuiliReadArray:@"levelB.plist"];

         {
    [self ColonePlerome:7988];

}
    int count=0;
    for (NSString *item in arr) {
        if ([item intValue] == 1) {
            count = count +1;
        }
    }
    jlabel *title = [jlabel tuilijlabelFrame:CGRectMake(0, 0.08*SCRHEIGHT, SCRWIDTH, 0.045*SCRHEIGHT) text:[NSString stringWithFormat:@"%d/45",count] textColor:[UIColor blackColor] font:[UIFont fontWithName:MyFontName size:0.040*SCRHEIGHT] textAlignment:NSTextAlignmentCenter backgroundColor:[UIColor clearColor]];
    [self.view addSubview:title];
    float mar1 = 0.0323*SCRWIDTH;
    float slvW = 0.135*SCRWIDTH;
    for (int i = 0; i<45; i++) {
        int row = i%5;
        int sec = i/5;
        selectlv *slv = [[selectlv alloc]initWithFrame:CGRectMake(0.093*SCRWIDTH+row*(slvW+mar1),0.16*SCRHEIGHT+sec*(slvW+mar1),slvW,slvW)];
        slv.lv.text = [NSString stringWithFormat:@"%d",i+1];
        slv.lv.textColor = [UIColor whiteColor];
        [arr[i] intValue] == 0?(slv.layer.borderColor = FixColor(52, 53, 45, 0.2).CGColor):(slv.layer.borderColor = FixColor(52, 53, 45, 1.0).CGColor);
        [self.view addSubview:slv];
        UITapGestureRecognizer *Gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tuiliClickEvent:)];
        Gesture.numberOfTapsRequired = 1;
        [slv addGestureRecognizer:Gesture];
    }
    
    self.view.backgroundColor = FixColor(43, 55, 99, 1.0);

}
@end
